﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BookItems.Core;

namespace BookItems.Site
{
	public partial class SiteMaster : System.Web.UI.MasterPage
	{
		protected void Page_Load(object sender, EventArgs e)
		{
            if (SessionManager.Shared.IsLoggedIn)
            {
                //HeadLoginView.Controls.Clear();

                //HeadLoginView.Controls.Add(new Label { Text = SessionManager.Shared.User.Username });
            }
            else
            {
                Response.Redirect("Login.aspx");
            }
		}
	}
}
